Ext.define('Admin.view.trade.AgreementController', {
	        extend : 'Admin.app.CrudController',
	        alias : 'controller.agreement',

	        onRefresh : function(view, record, params) {
		        var me = this, vm = me.getViewModel();
		        var store = vm.getStore('agreementListStore');
		        store.proxy.extraParams = {
			        id : record.data.id
		        }
		        store.reload();
		        me.clearData();
	        },

	        clearData : function() {
		        var me = this, vm = me.getViewModel();
		        var menutab = me.getReferences().agreementmenu;
		        menutab.fireEvent('clearData');
	        },

	        onAgreementSelect : function(model, record, index) {
		        var me = this, vm = me.getViewModel();

		        var menutab = me.getReferences().agreementmenu;
		        menutab.fireEvent('recordChange', record);
	        },

	        // 刷新协议列表
	        onRefreshClick : function(btn) {

	        }
        });